package com.itpan.Service;


import com.itpan.Entity.Product;
import com.itpan.Entity.PurchaseOrderDetail;
import com.itpan.Entity.StatsByT;

import java.util.List;

public interface PurchaseOrderDetailService {
    List<PurchaseOrderDetail> getall();

    List<PurchaseOrderDetail> getallpage(Integer page,Integer pageSize);

    List<PurchaseOrderDetail> getByMutil(PurchaseOrderDetail purchaseOrderDetail);

    PurchaseOrderDetail getById(Long Id);

    List<PurchaseOrderDetail> getByProductId(String Id);

    void saveOne(PurchaseOrderDetail purchaseOrderDetail);

    void saveAll(List<PurchaseOrderDetail> lsit);

    void update(PurchaseOrderDetail purchaseOrderDetail);

    void delete(Long Id);

    List<PurchaseOrderDetail> getMainpurchaseByMainId(Long Id);

    List<PurchaseOrderDetail> getProductByPid(String Id);


    List<StatsByT> getSumOfQuantityToproduct();

    List<StatsByT> getnumberCountoforder();

    List<StatsByT> getavgpricebyproduct();
}
